package com.fengmi.goods.controller;


import com.fengmi.goods.service.IMallGoodsCatService;
import com.fengmi.goods.vo.MallGoodsCatVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 商品类目 前端控制器
 * </p>
 *
 * @author sujie
 * @since 2022-11-23
 */
@RestController
@RequestMapping("/goods/mall-goods-cat")
public class MallGoodsCatController {
    @Autowired
    IMallGoodsCatService iMallGoodsCatService;

    @RequestMapping("getAllGoodsCat")
    public List<MallGoodsCatVO> getAllGoodsCat() {
        return iMallGoodsCatService.getAllGoodsCat();
    }
}
